<?php
/*check if people is allowed (log in) to access to the requested page, 
otherwise he is redirected to index*/
if (($_SESSION['log'] != 2) || empty($_SESSION['login']))
	header("Location: ../index.php?log=0");
?>